var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = new ((function () {
    function e() {
        this.fontPath = ["jiancheng500"];
        this.font = {};
    }
    e.prototype.init = function () {
        var e = this;
        cc.assetManager.loadBundle("/fontPage", function (t, o) {
            if (t) cc.log(" bundle 获取字体失败", t);
            else if (o)
                for (
                    var n = function (t) {
                            var n = t;
                            o.load(e.fontPath[n], cc.Font, function (t, o) {
                                if (o) {
                                    e.font[n] = o;
                                    console.log("FontCof ----------------- 加载字体成功" + e.fontPath[n]);
                                }
                            });
                        },
                        i = 0;
                    i < e.fontPath.length;
                    i++
                )
                    n(i);
        });
    };
    e.prototype.setFontLabel = function (e, t) {
        this.font[t] && (e.font = this.font[t]);
    };
    return e;
})())();
window.FontCof = n;
o.default = n;
